package tests;

import static org.junit.Assert.*;

import java.io.Serializable;

import org.junit.Before;
import org.junit.Test;
import negocios.Persona;

public class PersonaTest implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private Persona juan;
	private Persona ana;
	private Persona oscar;
	private Persona luisa;
	
	@Before
	public void crearPersonas(){
		 juan = new Persona ("Juan", "juan@yahoo.com", 25);
		 ana = new Persona ("Anita", "Ana90@gmail.com",16);
		 oscar = new Persona ("Oscar", "oscar@hotmail.com", 40);
		 luisa = new Persona ("Luisa", "luisa@yahoo.com", 22);
	}
	
	@Test
	public void equalsPersona(){
		assertFalse(juan.equals(ana));
		assertFalse(ana.equals(luisa));
		assertFalse(ana.equals(oscar));
		assertTrue(oscar.equals(oscar));
	}

	
}
